﻿using MyDay13.IRepostitype;
using MyDay13.IService;
using MyDay13.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day13Service
{
    public class RoleService : IRoleService
    {
        IRoleRepostitype role;
        public RoleService(IRoleRepostitype roleRepostitype)
        {
            role = roleRepostitype;
        }
        public int RoleAdd(D13Role d13Role)
        {
            return role.RoleAdd(d13Role);
        }

        public int RoleDel(string ids)
        {
            return role.RoleDel(ids);
        }

        public List<D13Role> RoleShow()
        {
            return role.RoleShow();
        }

        public int RoleUpt(D13Role d13Role)
        {
            return role.RoleUpt(d13Role);
        }

        public int RPDel(int ids)
        {
            return role.RPDel(ids);
        }

        public List<D13RolePowerTable> RPManyID(int rid)
        {
            return role.RPManyID(rid);
        }
    }
}
